package com.yang.playscript;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class playscript {
    @Scheduled(cron = "0 0 0 ? * 7")
    public void play() {
        Runtime rt = Runtime.getRuntime();
        Process p = null;
        try {
            p = rt.exec(
                    new String[]{"C:/Users/Administrator/AppData/Roaming/360se6/Application/360se.exe"});
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
